<!--
 * @Description: 
 * @Author: mmzhang
 * @Date: 2022-07-13 14:24:37
 * @LastEditTime: 2022-07-27 15:28:22
-->
<template>
  <adjust-list :adjustType="'SUBSCRIBER'" ref="adjustList"></adjust-list>
</template>
<script>
  import dt from '@dt/dt'
  import adjustList from '../commonAdjust/adjustList.vue'
  export default {
    data() {
      return {}
    },
    beforeRouteEnter(to, from, next) {
      if (from.name != 'subAdjust' && from.name != 'subApproveDetailCase') {
        dt.memory.remove('subAdjust_params')
      }
      next()
    },
    beforeRouteLeave(to, from, next) {
      if (to.name === 'subAdjust' || to.name == 'subApproveDetailCase') {
        this.$refs.adjustList.retainParamsFun()
      } else {
        dt.memory.remove('subAdjust_params')
      }

      next()
    },
    components: {
      adjustList
    }
  }
</script>